package pers.zb.center.web.boss.controller.task.handler;

import java.io.Serializable;

public class TaskVo implements Serializable {

    private String beanName;//任务所在bean名称
    private String taskName;//任务名称
    private String taskDesc;//任务说明
    private boolean onlineRun;//线上环境的Task是否执行

    private String taskDispatchPlatformUrl;//分布式任务调度平台的访问地址
    private String jobExecutorLogpath;//任务日志地址

    private int addressType;//地址类型（0：自动注册，1：手动注册）。特别说明：其实当前项目本身就是一个任务执行器，具体的任务逻辑在此项目中处理的。
    private String addressList;// 执行器地址列表，多地址逗号分隔（适用于新增执行器页面中的手动录入选项的文本值。目前该项目暂时没用到）

    private boolean jobExecutorStopStatus;//执行器停止状态（true：停止状态，false：运行中）
    private String jobExecutorAppName;//执行器应用名称（建议与项目名称一致，方便区分与管理）
    private String jobExecutorIp;//执行器应用的IP
    private int jobExecutoPort;//执行器应用的端口号

    public TaskVo(){}

    public TaskVo(String taskDispatchPlatformUrl,String jobExecutorLogpath,String jobExecutorAppName,String jobExecutorIp,int jobExecutorPort,boolean jobExecutorStopStatus){
        this.taskDispatchPlatformUrl = taskDispatchPlatformUrl;
        this.jobExecutorLogpath = jobExecutorLogpath;
        this.jobExecutorAppName = jobExecutorAppName;
        this.jobExecutorIp = jobExecutorIp;
        this.jobExecutoPort = jobExecutorPort;
        this.jobExecutorStopStatus = jobExecutorStopStatus;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public String getJobExecutorAppName() {
        return jobExecutorAppName;
    }

    public void setJobExecutorAppName(String jobExecutorAppName) {
        this.jobExecutorAppName = jobExecutorAppName;
    }

    public String getJobExecutorIp() {
        return jobExecutorIp;
    }

    public void setJobExecutorIp(String jobExecutorIp) {
        this.jobExecutorIp = jobExecutorIp;
    }

    public int getJobExecutoPort() {
        return jobExecutoPort;
    }

    public void setJobExecutoPort(int jobExecutoPort) {
        this.jobExecutoPort = jobExecutoPort;
    }

    public int getAddressType() {
        return addressType;
    }

    public void setAddressType(int addressType) {
        this.addressType = addressType;
    }

    public String getAddressList() {
        return addressList;
    }

    public void setAddressList(String addressList) {
        this.addressList = addressList;
    }

    public String getTaskDispatchPlatformUrl() {
        return taskDispatchPlatformUrl;
    }

    public void setTaskDispatchPlatformUrl(String taskDispatchPlatformUrl) {
        this.taskDispatchPlatformUrl = taskDispatchPlatformUrl;
    }

    public String getJobExecutorLogpath() {
        return jobExecutorLogpath;
    }

    public void setJobExecutorLogpath(String jobExecutorLogpath) {
        this.jobExecutorLogpath = jobExecutorLogpath;
    }

    public boolean isJobExecutorStopStatus() {
        return jobExecutorStopStatus;
    }

    public void setJobExecutorStopStatus(boolean jobExecutorStopStatus) {
        this.jobExecutorStopStatus = jobExecutorStopStatus;
    }

    public boolean isOnlineRun() {
        return onlineRun;
    }

    public void setOnlineRun(boolean onlineRun) {
        this.onlineRun = onlineRun;
    }
}
